// Dynamic tree editor - tree-like data structures editor for .NET/Mono.
// Copyright (C) 2006  Vladimir Sibirov
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace TreeEditor
{
	/// <summary>
	/// A dialog displayed on exit if the document isn't saved.
	/// </summary>
	public class SaveChangesDialog : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button buttonYes;
		private System.Windows.Forms.Button buttonNo;
		private System.Windows.Forms.Button buttonCancel;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		/// <summary>
		/// Form constructor.
		/// </summary>
		public SaveChangesDialog()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SaveChangesDialog));
			this.label1 = new System.Windows.Forms.Label();
			this.buttonYes = new System.Windows.Forms.Button();
			this.buttonNo = new System.Windows.Forms.Button();
			this.buttonCancel = new System.Windows.Forms.Button();
			this.docName = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.AccessibleDescription = null;
			this.label1.AccessibleName = null;
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
			this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
			this.label1.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("label1.BackgroundImageLayout")));
			this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
			this.label1.Font = null;
			this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
			this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
			this.label1.ImageKey = resources.GetString("label1.ImageKey");
			this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
			this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
			this.label1.Name = "label1";
			this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
			this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
			this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
			this.label1.Text = resources.GetString("label1.Text");
			this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
			// 
			// buttonYes
			// 
			this.buttonYes.AccessibleDescription = null;
			this.buttonYes.AccessibleName = null;
			this.buttonYes.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonYes.Anchor")));
			this.buttonYes.AutoSize = ((bool)(resources.GetObject("buttonYes.AutoSize")));
			this.buttonYes.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("buttonYes.AutoSizeMode")));
			this.buttonYes.BackgroundImage = null;
			this.buttonYes.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("buttonYes.BackgroundImageLayout")));
			this.buttonYes.DialogResult = System.Windows.Forms.DialogResult.Yes;
			this.buttonYes.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonYes.Dock")));
			this.buttonYes.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonYes.FlatStyle")));
			this.buttonYes.Font = null;
			this.buttonYes.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonYes.ImageAlign")));
			this.buttonYes.ImageIndex = ((int)(resources.GetObject("buttonYes.ImageIndex")));
			this.buttonYes.ImageKey = resources.GetString("buttonYes.ImageKey");
			this.buttonYes.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonYes.ImeMode")));
			this.buttonYes.Location = ((System.Drawing.Point)(resources.GetObject("buttonYes.Location")));
			this.buttonYes.Name = "buttonYes";
			this.buttonYes.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonYes.RightToLeft")));
			this.buttonYes.Size = ((System.Drawing.Size)(resources.GetObject("buttonYes.Size")));
			this.buttonYes.TabIndex = ((int)(resources.GetObject("buttonYes.TabIndex")));
			this.buttonYes.Text = resources.GetString("buttonYes.Text");
			this.buttonYes.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonYes.TextAlign")));
			this.buttonYes.TextImageRelation = ((System.Windows.Forms.TextImageRelation)(resources.GetObject("buttonYes.TextImageRelation")));
			// 
			// buttonNo
			// 
			this.buttonNo.AccessibleDescription = null;
			this.buttonNo.AccessibleName = null;
			this.buttonNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonNo.Anchor")));
			this.buttonNo.AutoSize = ((bool)(resources.GetObject("buttonNo.AutoSize")));
			this.buttonNo.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("buttonNo.AutoSizeMode")));
			this.buttonNo.BackgroundImage = null;
			this.buttonNo.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("buttonNo.BackgroundImageLayout")));
			this.buttonNo.DialogResult = System.Windows.Forms.DialogResult.No;
			this.buttonNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonNo.Dock")));
			this.buttonNo.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonNo.FlatStyle")));
			this.buttonNo.Font = null;
			this.buttonNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonNo.ImageAlign")));
			this.buttonNo.ImageIndex = ((int)(resources.GetObject("buttonNo.ImageIndex")));
			this.buttonNo.ImageKey = resources.GetString("buttonNo.ImageKey");
			this.buttonNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonNo.ImeMode")));
			this.buttonNo.Location = ((System.Drawing.Point)(resources.GetObject("buttonNo.Location")));
			this.buttonNo.Name = "buttonNo";
			this.buttonNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonNo.RightToLeft")));
			this.buttonNo.Size = ((System.Drawing.Size)(resources.GetObject("buttonNo.Size")));
			this.buttonNo.TabIndex = ((int)(resources.GetObject("buttonNo.TabIndex")));
			this.buttonNo.Text = resources.GetString("buttonNo.Text");
			this.buttonNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonNo.TextAlign")));
			this.buttonNo.TextImageRelation = ((System.Windows.Forms.TextImageRelation)(resources.GetObject("buttonNo.TextImageRelation")));
			// 
			// buttonCancel
			// 
			this.buttonCancel.AccessibleDescription = null;
			this.buttonCancel.AccessibleName = null;
			this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonCancel.Anchor")));
			this.buttonCancel.AutoSize = ((bool)(resources.GetObject("buttonCancel.AutoSize")));
			this.buttonCancel.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("buttonCancel.AutoSizeMode")));
			this.buttonCancel.BackgroundImage = null;
			this.buttonCancel.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("buttonCancel.BackgroundImageLayout")));
			this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.buttonCancel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonCancel.Dock")));
			this.buttonCancel.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonCancel.FlatStyle")));
			this.buttonCancel.Font = null;
			this.buttonCancel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.ImageAlign")));
			this.buttonCancel.ImageIndex = ((int)(resources.GetObject("buttonCancel.ImageIndex")));
			this.buttonCancel.ImageKey = resources.GetString("buttonCancel.ImageKey");
			this.buttonCancel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonCancel.ImeMode")));
			this.buttonCancel.Location = ((System.Drawing.Point)(resources.GetObject("buttonCancel.Location")));
			this.buttonCancel.Name = "buttonCancel";
			this.buttonCancel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonCancel.RightToLeft")));
			this.buttonCancel.Size = ((System.Drawing.Size)(resources.GetObject("buttonCancel.Size")));
			this.buttonCancel.TabIndex = ((int)(resources.GetObject("buttonCancel.TabIndex")));
			this.buttonCancel.Text = resources.GetString("buttonCancel.Text");
			this.buttonCancel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.TextAlign")));
			this.buttonCancel.TextImageRelation = ((System.Windows.Forms.TextImageRelation)(resources.GetObject("buttonCancel.TextImageRelation")));
			// 
			// docName
			// 
			this.docName.AccessibleDescription = null;
			this.docName.AccessibleName = null;
			this.docName.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("docName.Anchor")));
			this.docName.AutoSize = ((bool)(resources.GetObject("docName.AutoSize")));
			this.docName.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("docName.BackgroundImageLayout")));
			this.docName.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("docName.Dock")));
			this.docName.Font = null;
			this.docName.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("docName.ImageAlign")));
			this.docName.ImageIndex = ((int)(resources.GetObject("docName.ImageIndex")));
			this.docName.ImageKey = resources.GetString("docName.ImageKey");
			this.docName.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("docName.ImeMode")));
			this.docName.Location = ((System.Drawing.Point)(resources.GetObject("docName.Location")));
			this.docName.Name = "docName";
			this.docName.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("docName.RightToLeft")));
			this.docName.Size = ((System.Drawing.Size)(resources.GetObject("docName.Size")));
			this.docName.TabIndex = ((int)(resources.GetObject("docName.TabIndex")));
			this.docName.Text = resources.GetString("docName.Text");
			this.docName.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("docName.TextAlign")));
			// 
			// SaveChangesDialog
			// 
			this.AccessibleDescription = null;
			this.AccessibleName = null;
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoSize = ((bool)(resources.GetObject("$this.AutoSize")));
			this.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("$this.AutoSizeMode")));
			this.BackgroundImage = null;
			this.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("$this.BackgroundImageLayout")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.ControlBox = false;
			this.Controls.Add(this.docName);
			this.Controls.Add(this.buttonCancel);
			this.Controls.Add(this.buttonNo);
			this.Controls.Add(this.buttonYes);
			this.Controls.Add(this.label1);
			this.Font = null;
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = null;
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximizeBox = false;
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimizeBox = false;
			this.Name = "SaveChangesDialog";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.RightToLeftLayout = ((bool)(resources.GetObject("$this.RightToLeftLayout")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.ResumeLayout(false);
		}
		private System.Windows.Forms.Label docName;
		#endregion
		
		/// <summary>
		/// Displayed document name.
		/// </summary>
		internal string DocName
		{
			set
			{
				docName.Text = value;
			}
		}
	}
}
